<?php
/**
 * Created by 火蝶.
 * User: 蚂蚁
 * Date: 2017/4/23
 * Time: 13:34
 */
global $_W, $_GPC;
$id = $_GPC['id'];

$list = pdo_fetchall("select id,openname,openid,avatar,status,judgment_id,item,FROM_UNIXTIME(create_time,'%Y-%m-%d %H:%i:%s') as time from".tablename('tg_judgment')." where jishi_id ='{$id}' ORDER BY create_time desc LIMIT 0,2");
$total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename('tg_judgment') . " where jishi_id ='{$id}'  ORDER BY create_time DESC ");

if($op=='judgment_list')
{
	$gid = $_GPC['id'];
	$jud_list = pdo_fetchall("select id,openname,openid,avatar,status,judgment_id,item,FROM_UNIXTIME(create_time,'%Y-%m-%d %H:%i:%s') as time from".tablename('tg_judgment')." where jishi_id ='{$gid}' ORDER BY create_time desc");
	$jud_total = pdo_fetchcolumn('SELECT COUNT(*) FROM ' . tablename('tg_judgment') . " where jishi_id ='{$gid}'  ORDER BY create_time DESC ");
	include wl_template('comment');
	exit();
}
include wl_template('personnelListDetail');
exit();
